﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/philadmin/Philadmin.Master"
    CodeBehind="ViewUsers.aspx.vb" Inherits="Phila.ViewUsers" %>

<%@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="radG" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table width="100%" cellpadding="3" cellspacing="3" align="center">
        <tr>
            <td>
                <h1>
                    View User</h1>
                <%--<div class="addnew"><a href="EditUser.aspx">Add New</a></div>--%>
                <div align="center">
                    <asp:Label ID="lblMsg" runat="server"></asp:Label></div>
                <radG:RadGrid ID="radGrid" runat="server" Width="99%" PageSize="20" AllowSorting="True"
                    Skin="Telerik" AllowPaging="True" ShowGroupPanel="True" AutoGenerateColumns="False"
                    GridLines="None" EnableAJAX="True" AllowFilteringByColumn="True">
                    <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
                    <MasterTableView Width="100%" GroupLoadMode="Client" GroupsDefaultExpanded="False"
                        CommandItemDisplay="Top" DataKeyNames="ID">
                        <CommandItemTemplate>
                            <%--<table width="100%" border="0">
                                <tr>
                                    <td valign="top" align="right">
                                        <a href="EditUser.aspx">
                                            <img src="../RadControls/Grid/Skins/AddRecord.gif" align="absmiddle" />Add New</a>
                                    </td>
                                </tr>
                            </table>--%>
                        </CommandItemTemplate>
                        <GroupByExpressions>
                            <radG:GridGroupByExpression>
                                <SelectFields>
                                    <radG:GridGroupByField FieldAlias="ClientType" FieldName="ClientType" HeaderText="Client Type" />
                                </SelectFields>
                                <GroupByFields>
                                    <radG:GridGroupByField FieldName="ClientType" FieldAlias="ClientType" HeaderText="Client Type" />
                                </GroupByFields>
                            </radG:GridGroupByExpression>
                        </GroupByExpressions>
                        <RowIndicatorColumn Visible="False">
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn Visible="False">
                            <HeaderStyle Width="19px"></HeaderStyle>
                        </ExpandCollapseColumn>
                        <Columns>
                            <radG:GridTemplateColumn AllowFiltering="False" Groupable="false" UniqueName="TemplateEditColumn"
                                HeaderText="Edit">
                                <ItemTemplate>
                                    <a href="EditUser.aspx?id=<%#DataBinder.Eval(Container.DataItem,"ID")%>">
                                        <img src="../RadControls/Grid/Skins/Edit.gif" alt="Edit" title="Edit" style="border: 0px;" />
                                    </a>
                                </ItemTemplate>
                                <HeaderStyle Width="30px" />
                            </radG:GridTemplateColumn>
                            <radG:GridBoundColumn SortExpression="Name" HeaderText="Name" HeaderButtonType="TextButton"
                                DataField="Name">
                            </radG:GridBoundColumn>
                            <radG:GridBoundColumn SortExpression="Email" HeaderText="Email" HeaderButtonType="TextButton"
                                DataField="Email">
                            </radG:GridBoundColumn>
                            <radG:GridCheckBoxColumn DataField="IsActive" HeaderText="IsActive" SortExpression="IsActive"
                                UniqueName="IsActive" EditFormColumnIndex="1">
                                <HeaderStyle Width="100px" />
                            </radG:GridCheckBoxColumn>
                            <radG:GridButtonColumn UniqueName="DeleteColumn" Text="Delete" CommandName="Delete"
                                ButtonType="ImageButton" ImageUrl="../Images/Delete.gif" ConfirmText="Are you sure you want to delete this record?">
                                <HeaderStyle Width="30px" />
                            </radG:GridButtonColumn>
                        </Columns>
                    </MasterTableView>
                    <ClientSettings AllowGroupExpandCollapse="true" AllowDragToGroup="True">
                        <Selecting AllowRowSelect="False" />
                    </ClientSettings>
                </radG:RadGrid>
            </td>
        </tr>
    </table>
</asp:Content>
